package com.sansan.qiangji.mapper.warehouse;

import com.sansan.qiangji.entity.warehouse.PushOrderDetail;
import com.sansan.qiangji.entity.warehouse.example.PushOrderDetailExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tools.49db.cn
 * @version 1.0
 * @date 2020-11-05
 */
public interface PushOrderDetailMapper {
    List<PushOrderDetail> findByProductCodeOrProductName(@Param("productCode") String productCode, @Param("productName") String productName);

    int insertPushOrderDetails(@Param("pushOrderDetails") List<PushOrderDetail> pushOrderDetails);

    long countByExample(PushOrderDetailExample example);

    int deleteByExample(PushOrderDetailExample example);

    int deleteByPrimaryKey(Integer pushOrderDetailId);

    int insert(PushOrderDetail record);

    int insertSelective(PushOrderDetail record);

    List<PushOrderDetail> selectByExample(PushOrderDetailExample example);

    PushOrderDetail selectByPrimaryKey(Integer pushOrderDetailId);

    int updateByExampleSelective(@Param("record") PushOrderDetail record, @Param("example") PushOrderDetailExample example);

    int updateByExample(@Param("record") PushOrderDetail record, @Param("example") PushOrderDetailExample example);

    int updateByPrimaryKeySelective(PushOrderDetail record);

    int updateByPrimaryKey(PushOrderDetail record);
}
